package com.share.order.factor;

import com.share.common.core.exception.ServiceException;
import com.share.order.api.RemoteOrderInfoService;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * Author:pengyujia
 * Date: 2025/8/7 22:55
 * Description:
 */
@Component
public class RemoteOrderInfoFallbackFactory implements FallbackFactory<RemoteOrderInfoService> {

    @Override
    public RemoteOrderInfoService create(Throwable cause) {
        throw new ServiceException("调用出现错误");
    }
}
